<?php 
    $formulario=mktime(date("his"));
    $id_vent="vent_".$formulario;
    echo $this->Vista->ventana(DLOAD,DVENTANA,'CLIENTE MONITOREADO','Monitoreos/guardar',$formulario,'Guardar',0,'600','300',$id_vent);
?>
<div id="<?php echo DVENTANA ?>_2" style="display:none;" class="x-hide-display">
<?php
    echo $this->Interfaz->formulario($formulario);
    echo $this->Interfaz->inputoculto('id_vent', $id_vent);
    echo $this->Interfaz->inputoculto('beneficiario_id', $data[0]['Beneficiario']['id']);
    echo $this->Interfaz->inputoculto('monitoreo_id', $data[0]['Monitoreo'][0]['id']);
    echo $this->Interfaz->filset('Datos del Cliente',1);
?>
<table border='0' cellpadding='20' cellspacing='20' width='95%' align='center'>
    <tr>
        <td style="text-align: left; height: 30px; width: 25%" >C&oacute;digo SAP</td>
        <td><?php echo $this->Interfaz->input('cod_sap', 12, 'todo', 'inputn', 0, 10, $data[0]['Beneficiario']['codigo_sap'], 1, 0, 'Codigo SAP'); ?></td>
    </tr>
    <tr>
        <td style="text-align: left; height: 30px;" >C.I./Rif</td>
        <td><?php echo $this->Interfaz->input('ced_rif', 12, 'todo', 'inputn', 0, 10, $data[0]['Beneficiario']['ced_rif'], 1, 0, 'Cedula o Rif del cliente'); ?></td>
    </tr>
    <tr>
        <td style="text-align: left; height: 30px;" >Nombre</td>
        <td><?php echo $this->Interfaz->input('nombre', 38, 'todo', 'inputn', 0, 10, $data[0]['Integrador'][0]['nomcli'], 1, 0, 'Nombre del cliente'); ?></td>
    </tr>
    <tr>
        <td style="text-align: left; height: 30px;">Desde</td>
        <td>
        <?php 
            echo $this->Interfaz->input('desde', 12, 'fecha', 'inputn', 0, 11, date('Y-m-d',strtotime($data[0]['Monitoreo'][0]['desde'])), 0, 1, 'Fecha de Inicio a Considerar');
            $des = date('d-m-') . (date('Y'));
            $has = date('d-m-') . (date('Y') + 3);
            echo $this->Interfaz->calendario('desde', null, $des, $has);
        ?>
        </td>
    </tr>  
    <tr>
        <td style="text-align: left; height: 30px;">Hasta</td>
        <td>
        <?php 
            echo $this->Interfaz->input('hasta', 12, 'fecha', 'inputn', 0, 11, date('Y-m-d',strtotime($data[0]['Monitoreo'][0]['hasta'])), 0, 1, 'Fecha de Fin a Considerar');
            $des = date('d-m-') . (date('Y'));
            $has = date('d-m-') . (date('Y') + 3);
            echo $this->Interfaz->calendario('hasta', null, $des, $has);
        ?>
        </td>
    </tr>
    <tr>
        <td style="text-align: left; height: 30px;">Monto</td>
        <td><?php echo $this->Interfaz->input('monto', 12, 'moneda', 'inputn', 0, 10, $data[0]['Monitoreo'][0]['monto'], 0, 1, 'Monto del Credito'); ?></td>
    </tr>
</table>
    <?php echo $this->Interfaz->filset();?>
</div>